package feed.service.impl;

import feed.entity.Feed;
import feed.entity.FeedKey;
import feed.mapper.FeedMapper;
import feed.service.Feedservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Feedserviceimpl implements Feedservice {

    @Autowired
    private FeedMapper feedMapper;

    @Override
    public int deleteByPrimaryKey(FeedKey key) {
        return feedMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Feed record) {
        return feedMapper.insert(record);
    }

    @Override
    public int insertSelective(Feed record) {
        return feedMapper.insertSelective(record);
    }

    @Override
    public Feed selectByPrimaryKey(FeedKey key) {
        return feedMapper.selectByPrimaryKey(key);
    }

    @Override
    public int updateByPrimaryKeySelective(Feed record) {
        return feedMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Feed record) {
        return feedMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Feed> selectList() {
        return feedMapper.selectList();
    }
}
